package scc.Telas;

import Entidade.Composicao;
import Entidade.LancamentosEfetuados;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;

/**
 *
 * @author Davidson
 */
public class frmComposicao extends javax.swing.JDialog {
    
    private List<Composicao> listaComposicao;
    private List<LancamentosEfetuados> listaLancamentosEfetuados;    
    private String descricao;
    private String tipo;
    private String data;
    private int idLancamentoEfetuado;
    final NumberFormat f = new DecimalFormat("#,##0.00");
    
    public frmComposicao(java.awt.Frame parent, boolean modal, List<LancamentosEfetuados> listaLancamentosEfetuados, List<Composicao> listaComposicao, String descricao, String tipo, String data, int idLancamentoEfetuado) {
        super(parent, modal);
        initComponents();
        
        this.listaComposicao = listaComposicao;
        this.listaLancamentosEfetuados = listaLancamentosEfetuados;
        this.descricao = descricao;
        this.tipo = tipo;
        this.data = data;
        this.idLancamentoEfetuado = idLancamentoEfetuado;
        
        atualizarCabecalho();
        atualizaComposicao();
        
    }
    
    private void atualizarCabecalho(){
        txtTipo.setText(tipo);
        txtDescricao.setText(descricao);
        txtDataLancamento.setText(data);
        Iterator<LancamentosEfetuados> it = listaLancamentosEfetuados.iterator();
        while (it.hasNext()) {            
            LancamentosEfetuados lancamentosEfetuados = it.next();
            if (idLancamentoEfetuado == lancamentosEfetuados.getId() && tipo.equals(lancamentosEfetuados.getTipo())) {
                textAreaObservacaoC.setText(lancamentosEfetuados.getObservacao());
            }
        }
    }
    
    private void atualizaComposicao(){
        Iterator<Composicao> it = listaComposicao.iterator();
        double total = 0.0;

        while (it.hasNext()) {
            Composicao cc = it.next();
            if (cc.getValor() == 0.01){
                txtC001.setText(new Integer(cc.getQuantidade()).toString());
                lblC001.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 0.05){
                txtC005.setText(new Integer(cc.getQuantidade()).toString());
                lblC005.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 0.10){
                txtC010.setText(new Integer(cc.getQuantidade()).toString());
                lblC010.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 0.25){
                txtC025.setText(new Integer(cc.getQuantidade()).toString());
                lblC025.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 0.50){
                txtC050.setText(new Integer(cc.getQuantidade()).toString());
                lblC050.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 1.00){
                txtC100.setText(new Integer(cc.getQuantidade()).toString());
                lblC100.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 2.00){
                txtC200.setText(new Integer(cc.getQuantidade()).toString());
                lblC200.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 5.00){
                txtC500.setText(new Integer(cc.getQuantidade()).toString());
                lblC500.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 10.00){
                txtC1000.setText(new Integer(cc.getQuantidade()).toString());
                lblC1000.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 20.00){
                txtC2000.setText(new Integer(cc.getQuantidade()).toString());
                lblC2000.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 50.00){
                txtC5000.setText(new Integer(cc.getQuantidade()).toString());
                lblC5000.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
            if (cc.getValor() == 100.00){
                txtC10000.setText(new Integer(cc.getQuantidade()).toString());
                lblC10000.setText("R$ " + f.format(cc.getValor() * cc.getQuantidade()));
                total = total + cc.getValor() * cc.getQuantidade();
            }
        }        
        txtCValorTotalComposicao.setValue(total);        
    }
    
    

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        txtC001 = new javax.swing.JTextField();
        txtC005 = new javax.swing.JTextField();
        txtC010 = new javax.swing.JTextField();
        txtC025 = new javax.swing.JTextField();
        txtC100 = new javax.swing.JTextField();
        txtC050 = new javax.swing.JTextField();
        txtC10000 = new javax.swing.JTextField();
        txtC5000 = new javax.swing.JTextField();
        txtC2000 = new javax.swing.JTextField();
        txtC1000 = new javax.swing.JTextField();
        txtC500 = new javax.swing.JTextField();
        txtC200 = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        lblC001 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        lblC005 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        lblC010 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        lblC025 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        lblC050 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        lblC100 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        lblC10000 = new javax.swing.JLabel();
        lblC5000 = new javax.swing.JLabel();
        lblC2000 = new javax.swing.JLabel();
        lblC1000 = new javax.swing.JLabel();
        lblC500 = new javax.swing.JLabel();
        lblC200 = new javax.swing.JLabel();
        jSeparator3 = new javax.swing.JSeparator();
        jSeparator4 = new javax.swing.JSeparator();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        lblTotal7 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        textAreaObservacaoC = new javax.swing.JTextArea();
        btFechar = new javax.swing.JButton();
        lblTotal = new javax.swing.JLabel();
        txtCValorTotalComposicao = new javax.swing.JFormattedTextField();
        pCabecalho = new javax.swing.JPanel();
        lblNome = new javax.swing.JLabel();
        txtTipo = new javax.swing.JLabel();
        txtDescricao = new javax.swing.JLabel();
        lblNome3 = new javax.swing.JLabel();
        txtDataLancamento = new javax.swing.JLabel();
        lblNome5 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setBackground(java.awt.Color.white);

        txtC001.setColumns(15);
        txtC001.setEditable(false);
        txtC001.setForeground(new java.awt.Color(51, 51, 51));
        txtC001.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC001.setText("0");
        txtC001.setToolTipText("Digite a Quantidade!");
        txtC001.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC001.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC001.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC001.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC005.setColumns(15);
        txtC005.setEditable(false);
        txtC005.setForeground(new java.awt.Color(51, 51, 51));
        txtC005.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC005.setText("0");
        txtC005.setToolTipText("Digite a Quantidade!");
        txtC005.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC005.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC005.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC005.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC010.setColumns(15);
        txtC010.setEditable(false);
        txtC010.setForeground(new java.awt.Color(51, 51, 51));
        txtC010.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC010.setText("0");
        txtC010.setToolTipText("Digite a Quantidade!");
        txtC010.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC010.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC010.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC010.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC025.setColumns(15);
        txtC025.setEditable(false);
        txtC025.setForeground(new java.awt.Color(51, 51, 51));
        txtC025.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC025.setText("0");
        txtC025.setToolTipText("Digite a Quantidade!");
        txtC025.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC025.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC025.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC025.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC100.setColumns(15);
        txtC100.setEditable(false);
        txtC100.setForeground(new java.awt.Color(51, 51, 51));
        txtC100.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC100.setText("0");
        txtC100.setToolTipText("Digite a Quantidade!");
        txtC100.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC100.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC100.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC100.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC050.setColumns(15);
        txtC050.setEditable(false);
        txtC050.setForeground(new java.awt.Color(51, 51, 51));
        txtC050.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC050.setText("0");
        txtC050.setToolTipText("Digite a Quantidade!");
        txtC050.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC050.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC050.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC050.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC10000.setColumns(15);
        txtC10000.setEditable(false);
        txtC10000.setForeground(new java.awt.Color(51, 51, 51));
        txtC10000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC10000.setText("0");
        txtC10000.setToolTipText("Digite a Quantidade!");
        txtC10000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC10000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC10000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC10000.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC5000.setColumns(15);
        txtC5000.setEditable(false);
        txtC5000.setForeground(new java.awt.Color(51, 51, 51));
        txtC5000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC5000.setText("0");
        txtC5000.setToolTipText("Digite a Quantidade!");
        txtC5000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC5000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC5000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC5000.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC2000.setColumns(15);
        txtC2000.setEditable(false);
        txtC2000.setForeground(new java.awt.Color(51, 51, 51));
        txtC2000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC2000.setText("0");
        txtC2000.setToolTipText("Digite a Quantidade!");
        txtC2000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC2000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC2000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC2000.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC1000.setColumns(15);
        txtC1000.setEditable(false);
        txtC1000.setForeground(new java.awt.Color(51, 51, 51));
        txtC1000.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC1000.setText("0");
        txtC1000.setToolTipText("Digite a Quantidade!");
        txtC1000.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC1000.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC1000.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC1000.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC500.setColumns(15);
        txtC500.setEditable(false);
        txtC500.setForeground(new java.awt.Color(51, 51, 51));
        txtC500.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC500.setText("0");
        txtC500.setToolTipText("Digite a Quantidade!");
        txtC500.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC500.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC500.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC500.setMinimumSize(new java.awt.Dimension(85, 21));

        txtC200.setColumns(15);
        txtC200.setEditable(false);
        txtC200.setForeground(new java.awt.Color(51, 51, 51));
        txtC200.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtC200.setText("0");
        txtC200.setToolTipText("Digite a Quantidade!");
        txtC200.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        txtC200.setDisabledTextColor(new java.awt.Color(51, 51, 51));
        txtC200.setMaximumSize(new java.awt.Dimension(85, 21));
        txtC200.setMinimumSize(new java.awt.Dimension(85, 21));

        jLabel14.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel14.setForeground(new java.awt.Color(102, 102, 102));
        jLabel14.setText("R$ 0,01");
        jLabel14.setRequestFocusEnabled(false);

        lblC001.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC001.setForeground(new java.awt.Color(255, 102, 51));
        lblC001.setText("R$ 0,00");
        lblC001.setRequestFocusEnabled(false);

        jLabel15.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel15.setForeground(new java.awt.Color(102, 102, 102));
        jLabel15.setText("R$ 0,05");
        jLabel15.setRequestFocusEnabled(false);

        lblC005.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC005.setForeground(new java.awt.Color(255, 102, 51));
        lblC005.setText("R$ 0,00");
        lblC005.setRequestFocusEnabled(false);

        jLabel16.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel16.setForeground(new java.awt.Color(102, 102, 102));
        jLabel16.setText("R$ 0,10");
        jLabel16.setRequestFocusEnabled(false);

        lblC010.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC010.setForeground(new java.awt.Color(255, 102, 51));
        lblC010.setText("R$ 0,00");
        lblC010.setRequestFocusEnabled(false);

        jLabel17.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel17.setForeground(new java.awt.Color(102, 102, 102));
        jLabel17.setText("R$ 0,25");
        jLabel17.setRequestFocusEnabled(false);

        lblC025.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC025.setForeground(new java.awt.Color(255, 102, 51));
        lblC025.setText("R$ 0,00");
        lblC025.setRequestFocusEnabled(false);

        jLabel18.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel18.setForeground(new java.awt.Color(102, 102, 102));
        jLabel18.setText("R$ 0,50");
        jLabel18.setRequestFocusEnabled(false);

        lblC050.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC050.setForeground(new java.awt.Color(255, 102, 51));
        lblC050.setText("R$ 0,00");
        lblC050.setRequestFocusEnabled(false);

        jLabel19.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel19.setForeground(new java.awt.Color(102, 102, 102));
        jLabel19.setText("R$ 1,00");
        jLabel19.setRequestFocusEnabled(false);

        lblC100.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC100.setForeground(new java.awt.Color(255, 102, 51));
        lblC100.setText("R$ 0,00");
        lblC100.setRequestFocusEnabled(false);

        jLabel20.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel20.setForeground(new java.awt.Color(102, 102, 102));
        jLabel20.setText("R$ 2,00");
        jLabel20.setRequestFocusEnabled(false);

        jLabel21.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel21.setForeground(new java.awt.Color(102, 102, 102));
        jLabel21.setText("R$ 5,00");
        jLabel21.setRequestFocusEnabled(false);

        jLabel22.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel22.setForeground(new java.awt.Color(102, 102, 102));
        jLabel22.setText("R$ 10,00");
        jLabel22.setRequestFocusEnabled(false);

        jLabel23.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel23.setForeground(new java.awt.Color(102, 102, 102));
        jLabel23.setText("R$ 20,00");
        jLabel23.setRequestFocusEnabled(false);

        jLabel24.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel24.setForeground(new java.awt.Color(102, 102, 102));
        jLabel24.setText("R$ 50,00");
        jLabel24.setRequestFocusEnabled(false);

        jLabel32.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel32.setForeground(new java.awt.Color(102, 102, 102));
        jLabel32.setText("R$ 100,00");
        jLabel32.setRequestFocusEnabled(false);

        lblC10000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC10000.setForeground(new java.awt.Color(255, 102, 51));
        lblC10000.setText("R$ 0,00");
        lblC10000.setRequestFocusEnabled(false);

        lblC5000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC5000.setForeground(new java.awt.Color(255, 102, 51));
        lblC5000.setText("R$ 0,00");
        lblC5000.setRequestFocusEnabled(false);

        lblC2000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC2000.setForeground(new java.awt.Color(255, 102, 51));
        lblC2000.setText("R$ 0,00");
        lblC2000.setRequestFocusEnabled(false);

        lblC1000.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC1000.setForeground(new java.awt.Color(255, 102, 51));
        lblC1000.setText("R$ 0,00");
        lblC1000.setRequestFocusEnabled(false);

        lblC500.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC500.setForeground(new java.awt.Color(255, 102, 51));
        lblC500.setText("R$ 0,00");
        lblC500.setRequestFocusEnabled(false);

        lblC200.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        lblC200.setForeground(new java.awt.Color(255, 102, 51));
        lblC200.setText("R$ 0,00");
        lblC200.setRequestFocusEnabled(false);

        jLabel33.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel33.setForeground(new java.awt.Color(102, 102, 102));
        jLabel33.setText("Moeda");

        jLabel34.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel34.setForeground(new java.awt.Color(102, 102, 102));
        jLabel34.setText("Quantidade");

        jLabel35.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel35.setForeground(new java.awt.Color(102, 102, 102));
        jLabel35.setText("Valor");

        jLabel36.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel36.setForeground(new java.awt.Color(102, 102, 102));
        jLabel36.setText("Cedula");

        jLabel37.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel37.setForeground(new java.awt.Color(102, 102, 102));
        jLabel37.setText("Quantidade");

        jLabel38.setFont(new java.awt.Font("Arial", 2, 12)); // NOI18N
        jLabel38.setForeground(new java.awt.Color(102, 102, 102));
        jLabel38.setText("Valor");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSeparator3)
                    .addComponent(jSeparator4)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel33)
                                .addGap(26, 26, 26)
                                .addComponent(jLabel34)
                                .addGap(37, 37, 37)
                                .addComponent(jLabel35)
                                .addGap(100, 100, 100)
                                .addComponent(jLabel36)
                                .addGap(26, 26, 26)
                                .addComponent(jLabel37)
                                .addGap(34, 34, 34)
                                .addComponent(jLabel38))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel14)
                                    .addComponent(jLabel15)
                                    .addComponent(jLabel16)
                                    .addComponent(jLabel17)
                                    .addComponent(jLabel18)
                                    .addComponent(jLabel19))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtC001, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtC005, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtC010, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtC025, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtC050, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtC100, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(lblC050, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)
                                    .addComponent(lblC025, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lblC010, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lblC005, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lblC001, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lblC100, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel20)
                                    .addComponent(jLabel21)
                                    .addComponent(jLabel22)
                                    .addComponent(jLabel23)
                                    .addComponent(jLabel24)
                                    .addComponent(jLabel32))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtC200, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtC500, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtC1000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtC2000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtC5000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtC10000, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(lblC200, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)
                                    .addComponent(lblC500, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lblC1000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lblC2000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lblC5000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(lblC10000, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                        .addContainerGap())))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(13, 13, 13)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(jLabel33)
                    .addComponent(jLabel34)
                    .addComponent(jLabel35)
                    .addComponent(jLabel36)
                    .addComponent(jLabel37)
                    .addComponent(jLabel38))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtC200, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC200, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtC500, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC500, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtC1000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC1000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtC2000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC2000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtC5000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC5000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtC10000, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC10000, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtC001, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC001, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtC005, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC005, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC010, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtC010, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC025, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtC025, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtC050, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC050, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtC100, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblC100, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        lblTotal7.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        lblTotal7.setForeground(new java.awt.Color(102, 102, 102));
        lblTotal7.setText("Observação:");

        textAreaObservacaoC.setColumns(20);
        textAreaObservacaoC.setDocument(new FixedLengthDocument(500));
        textAreaObservacaoC.setEditable(false);
        textAreaObservacaoC.setFont(new java.awt.Font("Tahoma", 0, 13)); // NOI18N
        textAreaObservacaoC.setForeground(new java.awt.Color(51, 51, 51));
        textAreaObservacaoC.setLineWrap(true);
        textAreaObservacaoC.setRows(5);
        textAreaObservacaoC.setWrapStyleWord(true);
        textAreaObservacaoC.setMaximumSize(new java.awt.Dimension(224, 68));
        textAreaObservacaoC.setMinimumSize(new java.awt.Dimension(224, 68));
        jScrollPane2.setViewportView(textAreaObservacaoC);

        btFechar.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        btFechar.setForeground(new java.awt.Color(51, 51, 51));
        btFechar.setText("Fechar");
        btFechar.setMaximumSize(new java.awt.Dimension(99, 30));
        btFechar.setMinimumSize(new java.awt.Dimension(99, 30));
        btFechar.setPreferredSize(new java.awt.Dimension(99, 30));
        btFechar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btFecharActionPerformed(evt);
            }
        });

        lblTotal.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        lblTotal.setForeground(new java.awt.Color(74, 139, 245));
        lblTotal.setText("Valor total:");
        lblTotal.setFocusable(false);
        lblTotal.setRequestFocusEnabled(false);

        txtCValorTotalComposicao.setEditable(false);
        txtCValorTotalComposicao.setForeground(new java.awt.Color(51, 51, 51));
        txtCValorTotalComposicao.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("¤  #,##0.00"))));
        txtCValorTotalComposicao.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        txtCValorTotalComposicao.setFocusable(false);
        txtCValorTotalComposicao.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        txtCValorTotalComposicao.setPreferredSize(new java.awt.Dimension(150, 30));
        txtCValorTotalComposicao.setValue(0.00);

        pCabecalho.setBackground(new java.awt.Color(255, 255, 255));
        pCabecalho.setMinimumSize(new java.awt.Dimension(778, 87));

        lblNome.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        lblNome.setForeground(new java.awt.Color(102, 102, 102));
        lblNome.setText("Tipo:");

        txtTipo.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        txtTipo.setForeground(new java.awt.Color(102, 102, 102));

        txtDescricao.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        txtDescricao.setForeground(new java.awt.Color(102, 102, 102));

        lblNome3.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        lblNome3.setForeground(new java.awt.Color(102, 102, 102));
        lblNome3.setText("Descrição:");

        txtDataLancamento.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        txtDataLancamento.setForeground(new java.awt.Color(102, 102, 102));

        lblNome5.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        lblNome5.setForeground(new java.awt.Color(102, 102, 102));
        lblNome5.setText("Data:");

        javax.swing.GroupLayout pCabecalhoLayout = new javax.swing.GroupLayout(pCabecalho);
        pCabecalho.setLayout(pCabecalhoLayout);
        pCabecalhoLayout.setHorizontalGroup(
            pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pCabecalhoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblNome, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblNome3, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblNome5, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtDescricao, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
                    .addComponent(txtTipo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(txtDataLancamento, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pCabecalhoLayout.setVerticalGroup(
            pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pCabecalhoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNome)
                    .addComponent(txtTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNome3)
                    .addComponent(txtDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pCabecalhoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNome5)
                    .addComponent(txtDataLancamento, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(pCabecalho, javax.swing.GroupLayout.PREFERRED_SIZE, 602, Short.MAX_VALUE)
                    .addComponent(btFechar, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 592, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(lblTotal)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtCValorTotalComposicao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(lblTotal7))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pCabecalho, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTotal)
                    .addComponent(txtCValorTotalComposicao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblTotal7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btFechar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-638)/2, (screenSize.height-626)/2, 638, 626);
    }// </editor-fold>//GEN-END:initComponents

    private void btFecharActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btFecharActionPerformed
        this.setVisible(false);
    }//GEN-LAST:event_btFecharActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btFechar;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JLabel lblC001;
    private javax.swing.JLabel lblC005;
    private javax.swing.JLabel lblC010;
    private javax.swing.JLabel lblC025;
    private javax.swing.JLabel lblC050;
    private javax.swing.JLabel lblC100;
    private javax.swing.JLabel lblC1000;
    private javax.swing.JLabel lblC10000;
    private javax.swing.JLabel lblC200;
    private javax.swing.JLabel lblC2000;
    private javax.swing.JLabel lblC500;
    private javax.swing.JLabel lblC5000;
    private javax.swing.JLabel lblNome;
    private javax.swing.JLabel lblNome3;
    private javax.swing.JLabel lblNome5;
    private javax.swing.JLabel lblTotal;
    private javax.swing.JLabel lblTotal7;
    private javax.swing.JPanel pCabecalho;
    private javax.swing.JTextArea textAreaObservacaoC;
    private javax.swing.JTextField txtC001;
    private javax.swing.JTextField txtC005;
    private javax.swing.JTextField txtC010;
    private javax.swing.JTextField txtC025;
    private javax.swing.JTextField txtC050;
    private javax.swing.JTextField txtC100;
    private javax.swing.JTextField txtC1000;
    private javax.swing.JTextField txtC10000;
    private javax.swing.JTextField txtC200;
    private javax.swing.JTextField txtC2000;
    private javax.swing.JTextField txtC500;
    private javax.swing.JTextField txtC5000;
    private javax.swing.JFormattedTextField txtCValorTotalComposicao;
    private javax.swing.JLabel txtDataLancamento;
    private javax.swing.JLabel txtDescricao;
    private javax.swing.JLabel txtTipo;
    // End of variables declaration//GEN-END:variables
}
